import { post, get } from '@/utils/request'
// 登录
export const login = (params) => post('/user/login', params)
// 获取考试
export const getUserExam = (params) => post('/question/getUserExam', params)
// 获取考试详细信息
export const getExamDetailed = (params) => get('/question/getExam', params)
// 获取试卷
export const getQuestion = (params) => post('/question/getQuestion', params)
// 获取试题文件

// 发送验证码
export const sendCode = (params) => post('/user/sendCode', params)
// 忘记密码
export const modifyPasswordByMobile = (params) => post('/user/modifyPasswordByMobile', params)
// 获取医院列表
export const userHospital = (params) => get('/user/userHospital', params)
// 获取用户信息
export const getInfo = (params) => post('/user/info', params)
// 修改资料
export const modifyUser = (params) => post('/user/modifyUser', params)
// 上传头像
export const upload = (params) => post('/user/upload', params)
// 修改密码
export const modifyPassword = (params) => post('/user/modifyPassword', params)
// 修改手机号
export const modifyMobile = (params) => post('/user/modifyMobile', params)
// 提交答题记录
export const submitAnswer = (params) => post('/question/answer', params)
// 获取成绩统计
export const getRankList = (params) => post('/question/getRankList', params)
// 获取章节统计
export const getUserAnswerStatistics = (params) => post('/question/getUserAnswerStatistics', params)
// 进入考试
export const joinExam = (params) => post('/user/joinExam', params)
// 获取项目
export const getApps = (params) => post('/question/apps', params)
// 获取题目统计视频详情
export const getQuestionAdditional = (params) => post('/question/getQuestionAdditional', params)
// 获取考生成绩
export const getUserFirstAnswerScore = (params) => post('/question/getUserFirstAnswerScore', params)
// 获取考生答案
export const getUserAnswer = (params) => post('/question/getUserAnswer', params)
// 获取考生成绩
export const getAnswerList = (params) => post('/question/getAnswerList', params)

